package com.hailian.fintech.feignserver.controller;

import com.hailian.fintech.feignserver.feign.AccountFeign;
import com.hailian.fintech.hlcomm_interfaceserver.result.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("consumer")
public class ConsumerController {
    @Autowired
    private AccountFeign accountFeign;



    @RequestMapping("selectTiXianAccount")
    public Object selectTiXianAccount(@RequestParam("operationType") String operationType){

        return new ResultInfo().success(accountFeign.selectTiXianAccount(operationType));
    }
    @RequestMapping("aaa")
    public String aaa(String aa){
        return aa;
    }

    @RequestMapping("passAccount")
    public Object passAccount(@RequestParam("id") Integer id){
        return accountFeign.passAccount(id);
    }

}
